package com.ms.qw.jsf.converter;

import com.ms.qw.client.dto.CodigoValorDTO;
import org.dozer.CustomConverter;

public class CodigoValorTypeConverter implements CustomConverter {

    public Object convert(Object destination, Object source, Class destClass, Class sourceClass) {
        if(source==null) return null;
        CodigoValorDTO value= ((CodigoValorDTO) source);
        return value.getCodigo();
    }
}
